//
//  CantripOutlineView.m
//  CantripSDK
//
//  Created by James Callender on Wed Jun 16 2004.
//  Copyright (c) 2004 James Callender. All rights reserved.
//

#import "CantripOutlineView.h"


@implementation CantripOutlineView

- (id)initWithFrame:(NSRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code here.
    }
    return self;
}

- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint operation:(NSDragOperation)operation
{
    if ([self delegate] && [[self delegate] respondsToSelector:@selector(view:draggedImage:endedAt:operation:)])
	[[self delegate] view:self draggedImage:anImage endedAt:aPoint operation:operation];
    else [super draggedImage:anImage endedAt:aPoint operation:operation];
}

- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal {
    if ([self delegate] && [[self delegate] respondsToSelector:@selector(view:draggingSourceOperationMaskForLocal:)])
	return [[self delegate] view:self draggingSourceOperationMaskForLocal:isLocal];
    else return [super draggingSourceOperationMaskForLocal:isLocal];
}

@end
